package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 户籍公安数据导入
 *
 * @author chenzh
 * @since 2024-05-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_household_ga")
@Schema(name = "EduHouseholdGa", title = "户籍公安数据导入", description = "户籍公安数据导入实体类")
public class EduHouseholdGa extends Model<EduHouseholdGa> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "idcard", type = IdType.ASSIGN_ID)
    private String idcard;

    @TableField(value = "full_name")
    private String fullName;

    @TableField(value = "hh")
    private String hh;

    @TableField(value = "hsqlbs")
    private String hsqlbs;

    @TableField(value = "hsqlbz")
    private String hsqlbz;

    @TableField(value = "address")
    private String address;

    @TableField(value = "father_name")
    private String fatherName;

    @TableField(value = "father_idcard")
    private String fatherIdcard;

    @TableField(value = "mother_name")
    private String motherName;

    @TableField(value = "mother_idcard")
    private String motherIdcard;

    @TableField(value = "type1")
    private String type1;

    @TableField(value = "type1_name")
    private String type1Name;

    @TableField(value = "type1_idcard")
    private String type1Idcard;

    @TableField(value = "type2")
    private String type2;

    @TableField(value = "type2_name")
    private String type2Name;

    @TableField(value = "type2_idcard")
    private String type2Idcard;

    @TableField(value = "year")
    private Integer year;

    @Schema(name = "createTime", description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private Date createTime;

    @Override
    public Serializable pkVal() {
        return this.idcard;
    }
}
